<div id="shop-config-edit-item" class="label120">
	<form action="{$env.url}admin/configure/shop/edit-item/{$Item->getID()}/" method="post" enctype="multipart/form-data">
		<p class="form"><label for="item_name">{$ConfigLanguage->get("item_name")}: </label><input type="text" name="item_name" value="{$Item->getName()}" /></p>
		<p class="form"><label for="item_price">{$ConfigLanguage->get("price")}: </label><input type="text" name="item_price" value="{$Item->getRawPrice()}" />&euro;</p>
		<p class="form"><label for="item_discount">{$ConfigLanguage->get("discount")}: </label><input type="text" name="item_discount" value="{$Item->getDiscount()}" />%</p>
		<p class="form"><label for="item_code">{$ConfigLanguage->get("item_code")}: </label><input type="text" name="item_code" value="{$Item->getCode()}" /></p>
		<p class="form"><label for="category_id">{$ConfigLanguage->get("category_name")}: </label>
			<select name="category_id">
			{foreach from=$AllCategories item=Cat}
				<option {if $Item->getCategoryID() == $Cat->getID()}selected="selected" {/if}value="{$Cat->getID()}">{$Cat->getName()}</option>
			{/foreach}
			</select>
		</p>
		<p class="form"><label for="item_avalible">{$ConfigLanguage->get("item_avalible")}: </label>
			<select name="item_avalible">
				<option value="yes">{$ConfigLanguage->get("yes")}</option>
				<option {if $Item->getAvalibility() == false}selected="selected" {/if}value="no">{$ConfigLanguage->get("no")}</option>
			</select>
		</p>
		<p class="form"><label for="item_short_description">{$ConfigLanguage->get("item_short_description")}: </label>
			<textarea name="item_short_description" cols="60" rows="3">{$Item->getShortDescription()}</textarea>
		</p>
		<p class="form"><label for="item_long_description">{$ConfigLanguage->get("item_long_description")}: </label>
			<textarea name="item_long_description" cols="60" rows="10">{$Item->getLongDescription()}</textarea>
		</p>
		<p class="form"><label for="item_image">{$ConfigLanguage->get("item_image")}: </label><input type="file" name="item_image" /></p>
		<p class="form"><input type="submit" name="editItem" value="{$ConfigLanguage->get('edit_item')}" /></p>
	</form>
</div>